/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package service;

import dao.PersonDAO;
import java.util.List;
import model.Person;

/**
 *
 * @author pasante
 */
public class PersonServiceImpl implements PersonService{

   private PersonDAO personDAO;
   
    @Override
    public List getPersonList() {
        return personDAO.getPersonList();
    }

    @Override
    public Person getPerson(int id) {
      return personDAO.getPerson(id);
    }

    @Override
    public void savePerson(Person person) {
       personDAO.savePerson(person);
    }

    @Override
    public void deletePerson(int id) {
        personDAO.deletePerson(id);
    }

    /**
     * @param personDAO the personDAO to set
     */
    public void setPersonDAO(PersonDAO personDAO) {
        this.personDAO = personDAO;
    }
    
}
